package com.turato.mybatis.web.service.impl;

import com.turato.mybatis.web.dao.mapper.EmployeesMapper;
import com.turato.mybatis.web.model.bo.EmployeeBO;
import com.turato.mybatis.web.model.bo.SearchEmployeeConditionBO;
import com.turato.mybatis.web.service.EmployeeService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author tuhao
 * @date 2021/3/21 10:57 上午
 * @desc
 */
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    EmployeesMapper employeesMapper;
    /**
     * 条件查询
     *
     * @param condition
     * @return
     */
    @Override
    public List<EmployeeBO> search(SearchEmployeeConditionBO condition) {
        return employeesMapper.searchByConditionBO(condition);
    }
}
